<?php

require_once '../model/db.php';
require_once '../config/config.php';
class works extends db {

    public $start;
    public $end;

    public function select() {
        $this->connect();
        $query = "SELECT * FROM works LIMIT $this->start, $this->end";
        $works = $this->query($query);
        return $works;
    }  
    
    public function count() {
        $this->connect();
        $query = "SELECT * FROM works";
        $works = $this->query($query);
        return count($works);
    }

}

?>